package com.huilian.iotbox.admin.quartz.job;

import com.huilian.iotbox.admin.service.StatsLedgerMerchantOrderExchangeService;
import com.huilian.iotbox.data.utils.DateTimeUtils;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

@Slf4j
public class StatsMonthLedgerMerchantOrderExchangeJob implements BaseJob{
    @Autowired
    private StatsLedgerMerchantOrderExchangeService statsLedgerMerchantOrderExchangeService;
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("--------------定时任务 分账订单 统计开始 时间{}---------------", DateTimeUtils.currTime());
        Exception result = statsLedgerMerchantOrderExchangeService.StatsMonthLedgerMerchantOrderExchangeJob();
        log.info("--------------定时任务 分账订单 统计结束 end时间{}---------------", DateTimeUtils.currTime());
    }
}
